//
//  HelpPro.m
//  iMessage
//
//  Created by kare on 14-3-12.
//  Copyright (c) 2014年 kare. All rights reserved.
//

#import "HelpPro.h"

@implementation HelpPro

@end

BOOL validateMobile(NSString* mobile)
{
    //手机号以13， 15，18开头，八个 \d 数字字符
    NSString *phoneRegex = @"^((13[0-9])|(15[^4,\\D])|(18[0,0-9]))\\d{8}$";
    NSPredicate *phoneTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",phoneRegex];
    //    NSLog(@"phoneTest is %@",phoneTest);
    return [phoneTest evaluateWithObject:mobile];
}

